package com.ioudi.digu.service;

import java.util.List;
import java.util.Map;

import javax.jws.WebService;

import com.ioudi.digu.vo.User;
import com.ioudi.digu.vo.adapter.OutboundUser;

@WebService
public interface IUserService extends IGeneralService
{
	boolean existUser(String account);
	
	String retrieveNonce();
	
	Map retrieveUserDetail(String account);
	
	OutboundUser login(String account, String passwordMD5);
	
	boolean userLogout(String account);
	
	List<String> getAroundUserNames(String user, Map condition);
	
	List<OutboundUser> getUsers(List userNames);
	
	/**
	 * Get around guys who will be received a message sent by the user. 
	 * @param user
	 * @param condition
	 * @return
	 */
	List<String> getAroundAttentionedUserNames(String user, Map condition);
	
	User getUser(String account);
}
